package com.central.post.controller

import com.baomidou.mybatisplus.extension.plugins.pagination.Page
import com.central.common.annotation.LoginUser
import com.central.common.model.CommonResult
import com.central.common.model.PageVo
import com.central.common.model.SysUser
import com.central.post.pojo.authenticate.*
import com.central.post.service.AuthenticateService
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.*
import springfox.documentation.annotations.ApiIgnore

/**
 * @author  fly
 * @date  2021/5/26 14:55
 * @version 1.0
 */
@Api(tags = ["(管理系统) 山正鉴定模块"])
@RestController
@RequestMapping("/back/authenticate")
open class BackAuthenticateController {

    @Autowired
    private lateinit var authenticateService: AuthenticateService

    @ApiOperation("设置山正评测结果(后台管理系统)")
    @PutMapping("/settingAuthenticateResult")
    fun settingAuthenticateResult(id: Long, type: Int): CommonResult<Boolean> =
        authenticateService.settingAuthenticateResult(id, type)

}
